<?php
	session_start();
	
	if(isset($_GET['logout']) ) {
		$_SESSION['user'] = null;
	
	} else {
	
		$_SESSION['user'] = $_POST['user'];
	
	}
	
	header("Location: ../index.php");
	
?>